/*
 * @Author: canlong.shen
 * @Date: 2021-10-21 17:16:58
 * @LastEditors: your name
 * @LastEditTime: 2021-10-22 10:33:18
 * @Description: file content
 */
import 'es6-promise/auto'
import Vue  from 'vue'
import Vuex from 'vuex'

 Vue.use(Vuex)
const store = new Vuex.Store(
    {
        state: {
            count: 0
        },
        mutations: {
            increment(state) {
                state.count++
            }
        }
    }
)

console.log("before", store.state.count)
store.commit('increment')
console.log("after", store.state.count)
